home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / include / ds3100.md / alloca.h < prev    next >
C/C++ Source or Header  |  1990-11-12  |  998b  |  32 lines

  1. /*
  2.  * alloca.h --
  3.  *
  4.  *    Declarations of alloca() for the ds3100.  Since the ds3100 has
  5.  *      a normal stack alloca is just a normal procedure.  For other
  6.  *      machines such as the sparc it has to be a fancy builtin macro.
  7.  *
  8.  * Copyright 1989 Regents of the University of California
  9.  * Permission to use, copy, modify, and distribute this
  10.  * software and its documentation for any purpose and without
  11.  * fee is hereby granted, provided that the above copyright
  12.  * notice appear in all copies.  The University of California
  13.  * makes no representations about the suitability of this
  14.  * software for any purpose.  It is provided "as is" without
  15.  * express or implied warranty.
  16.  *
  17.  * $Header: /sprite/src/lib/include/ds3100.md/RCS/alloca.h,v 1.2 89/11/12 01:32:27 rab Exp $ SPRITE (Berkeley)
  18.  */
  19.  
  20. #ifndef _ALLOCA_H
  21. #define _ALLOCA_H
  22.  
  23. /* If compiled with GNU C, use the built-in alloca */
  24. #ifdef __GNUC__
  25. #define alloca __builtin_alloca
  26. #else
  27. extern char *alloca();
  28. #endif
  29.  
  30. #endif /* _ALLOCA_H */
  31.  
  32.